package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * (RbacMenu)实体类
 *
 * @author makejava
 * @since 2022-05-31 11:25:03
 */

public class RbacMenu implements Serializable {
    private static final long serialVersionUID = -29656644663841284L;
    /**
     * 菜单id
     */
    private Integer menuId;
    /**
     * 菜单图标
     */
    private String menuIcon;
    /**
     * 菜单名字
     */
    private String menuName;
    /**
     * 菜单链接
     */
    private String menuUrl;
    /**
     * 菜单父id
     */
    private List<RbacMenu> children;

    public RbacMenu() {
    }

    public RbacMenu(Integer menuId, String menuIcon, String menuName, String menuUrl, List<RbacMenu> children) {
        this.menuId = menuId;
        this.menuIcon = menuIcon;
        this.menuName = menuName;
        this.menuUrl = menuUrl;
        this.children = children;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public List<RbacMenu> getChildren() {
        return children;
    }

    public void setChildren(List<RbacMenu> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "RbacMenu{" +
                "menuId=" + menuId +
                ", menuIcon='" + menuIcon + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", children=" + children +
                '}';
    }
}